package org.javaboy.sms_login.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.javaboy.sms_login.model.User;

@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username};")
    User loadUserByUsername(String username);

    @Select("select * from user where phone=#{phone};")
    User loadUserByPhone(String phone);
}
